package zheezes.protocol.impl.gbw.define;


public class Density {
	private static final int[][] table = new int[][] { 
		{ 0, -1 }, { 1, 15 }, { 2, 30 }, { 3, 60 } 
	};

	public static final int getInterval(int type) {
		for (int[] entry : table) {
			if(entry[0] == type) {
				return entry[1];
			}
		}
		return -1;
	}

	public static final int getType(int interval) {
		for (int[] entry : table) {
			if(entry[1] == interval) {
				return entry[0];
			}
		}
		return -1;
	}
}
